﻿using GPS.DataAccessLayer;
using PagedList;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GPS.ENTITYS
{
    public class ViewModelDGV
    {
        public int? Page { get; set; }

        [Display(Name = "Ma GV")]
        public string pGV_MA { get; set; }

        [Display(Name = "Tên GV")]
        public string pGV_TEN { get; set; }
        public string pGV_HODEM { get; set; }

        [Display(Name = "")]
        public string pGV_DVGTVT_MA { get; set; }

        [Display(Name = "")]
        public string pGV_HANGDT_MA { get; set; }

        [Display(Name = "")]
        public string pGV_SOCMT { get; set; }

        [Display(Name = "")]
        public string pGV_TEL { get; set; }

        public string pGV_ACTIVE { get; set; }

        public IPagedList<DGV> SearchResults { get; set; }
        public string pGV_TDCHUYENMON { get; set; }
        public string ExportButton { get; set; }
    }

    public class ViewModelDCPGV
    {
        public int? Page { get; set; }
        public string pDCP_GV_MA { get; set; }
        public string pDCP_GV_HODEM { get; set; }
        public string pDCP_GV_TEN { get; set; }
        public string pDCP_GV_DVGTVT_MA { get; set; }
        public string pDCP_GV_HANGDT_MA { get; set; }
        public string pDCP_GV_SOCMT { get; set; }
        public IPagedList<CrudModelDCPGV> SearchResults { get; set; }
        public string ButtonSearch { get; set; }
    }

    public class ModelDGV
    {
        public string GV_MA { get; set; }
        public string GV_TEN { get; set; }
        public string GV_HODEM { get; set; }
        public string GV_HOTEN
        {
            get
            {
                return this.GV_HODEM + " " + this.GV_TEN;
            }
        }

    }
}
